package cn.xiongxf.utils;

import cn.xiongxf.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class LimitCurrentUtil {
    public static User LimitCurrent(@PathVariable Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L,"流控触发！","当前访问量过大，请稍后重试！");
    }
}
